package com.zjj.filmcommentapi.controller;

import com.zjj.filmcommentapi.model.Movie;
import com.zjj.filmcommentapi.service.MovieService;
import com.zjj.filmcommentapi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/movie")
@RestController
public class MovieController {

    @Autowired
    private MovieService movieService;
    @RequestMapping("/add")
    public Result addMovie(Movie movie){
        return movieService.addMovie(movie);
    }

}
